<%- include('../public/page_header.html')%>

    <div class="panel panel-default">
        <!--列表展示-->
        <div class="table-responsive">
            <table class="table table-bordered">
                <thead>
                    <tr class="th">
                        <th class="text-center">管理员名称</th>
                        <th class="text-center">管理员电话</th>
                        <th class="text-center">管理员邮箱</th>
                        <th class="text-center">状态</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <% for(let i=0; i<list.length; i++){%>
                        <tr>
                            <td class="text-center">
                                <span class="chSpanNum" data-id="<%=list[i]._id%>" data-model="Manager" data-field="username">
                                    <%=list[i].username%>
                                </span>
                            </td>
                            <td class="text-center">
                                <span class="chSpanNum" data-id="<%=list[i]._id%>" data-model="Manager" data-field="mobile">
                                    <%=list[i].mobile%>
                                </span>
                            </td>
                            <td class="text-center">
                                <span class="chSpanNum" data-id="<%=list[i]._id%>" data-model="Manager" data-field="email">
                                    <%=list[i].email%>
                                </span> 
                            </td>
                            <td class="text-center">
                                <% if(list[i].status == 1){%>
                                    <img src="/admin/images/yes.png" class="chStatus" data-id="<%=list[i]._id%>" 
                                         data-model="Manager" data-field="status">
                                <%}else{%>
                                    <img src="/admin/images/no.png"  class="chStatus" data-id="<%=list[i]._id%>"
                                         data-model="Manager" data-field="status">
                                <%}%>
                            </td>
                            <td class="text-center">
                                <a href="/<%=adminPath%>/manager/edit?id=<%=list[i]._id%>">修改</a>
                                <a class="delete" href="/<%=adminPath%>/manager/delete?id=<%=list[i]._id%>">删除</a>
                            </td>
                        </tr>
                    <%}%>
                </tbody>
            </table>
        </div>
    </div>
    </body>
</html>